home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / wgdb-42.lha / wgdb-4.2 / bfd / Makefile < prev    next >
Makefile  |  1992-09-11  |  10KB  |  310 lines

  1. target_makefile_frag = ./config/t-sparc-aout
  2. ALL=all.internal
  3. host_alias = sun4
  4. host_cpu = sparc
  5. host_vendor = sun
  6. host_os = sunos4
  7. target_alias = sun4
  8. target_cpu = sparc
  9. target_vendor = sun
  10. target_os = sunos4
  11. subdir =
  12. unsubdir = .
  13. VPATH = .
  14. #    Makefile template for Configure for the BFD library.
  15. #    Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  16. #    Written by Cygnus Support.
  17. # This file is part of BFD, the Binary File Descriptor library.
  18. # This program is free software; you can redistribute it and/or modify
  19. # it under the terms of the GNU General Public License as published by
  20. # the Free Software Foundation; either version 2 of the License, or
  21. # (at your option) any later version.
  22. # This program is distributed in the hope that it will be useful,
  23. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25. # GNU General Public License for more details.
  26. # You should have received a copy of the GNU General Public License
  27. # along with this program; if not, write to the Free Software
  28. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29.  
  30. # $Id: Makefile.in,v 1.49 1991/10/12 05:45:59 gnu Exp $
  31.  
  32. srcdir = .
  33. destdir = /usr/local
  34. libdir = $(destdir)/H-$(host_alias)/T-independent/lib
  35. docdir = $(srcdir)/doc
  36.  
  37. RANLIB = ranlib
  38. AR = ar
  39. AR_FLAGS = clq
  40. INCDIR = $(srcdir)/../include
  41. CSEARCH = -I. -I$(INCDIR)
  42. DEP = mkdep
  43.  
  44.  
  45. #### host and target dependent Makefile fragments come in here.
  46. TDEFINES = -DDEFAULT_VECTOR=sunos_big_vec
  47. ###
  48.  
  49. TARGETLIB = libbfd.a
  50. CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
  51.  
  52.  
  53. BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
  54.     archures.o core.o section.o format.o syms.o reloc.o init.o
  55.  
  56. BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
  57.     cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o
  58.  
  59. BFD_BACKENDS = oasys.o ieee.o srec.o \
  60.     aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
  61.     icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o elf.o
  62.  
  63.  
  64. OPTIONAL_BACKENDS = trad-core.o
  65.  
  66. BFD_H=$(INCDIR)/bfd.h
  67.  
  68. # C source files that correspond to .o's.
  69. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
  70.      i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \
  71.      oasys.c ieee.c m68kcoff.c amdcoff.c \
  72.      format.c section.c core.c syms.c reloc.c init.c \
  73.      m88k-bcs.c ecoff.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
  74.     cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
  75.      cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.o
  76.  
  77. STAGESTUFF = $(TARGETLIB) $(OFILES)
  78.  
  79. all: $(TARGETLIB) 
  80.  
  81. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  82. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  83.  
  84. $(TARGETLIB): $(OFILES)
  85.      rm -f $(TARGETLIB)
  86.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  87.      $(RANLIB) $(TARGETLIB)
  88.  
  89. stage1: force
  90.     - mkdir stage1
  91.     - mv -f $(STAGESTUFF) stage1
  92.  
  93. stage2: force
  94.     - mkdir stage2
  95.     - mv -f $(STAGESTUFF) stage2
  96.  
  97. stage3: force
  98.     - mkdir stage3
  99.     - mv -f $(STAGESTUFF) stage3
  100.  
  101. against=stage2
  102.  
  103. comparison: force
  104.     for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  105.  
  106. de-stage1: force
  107.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  108.     - rmdir stage1
  109.  
  110. de-stage2: force
  111.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  112.     - rmdir stage2
  113.  
  114. de-stage3: force
  115.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  116.     - rmdir stage3
  117.  
  118. tags etags: TAGS
  119.  
  120. TAGS: force
  121.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  122.  
  123. clean:
  124.     rm -f *.[oa] *~ core *.E *.p *.ip
  125.  
  126. clobber realclean: clean
  127.     rm -f libbfd.a TAGS
  128.  
  129. # Mark everything as depending on config.status, since the timestamp on
  130. # sysdep.h might actually move backwards if we reconfig and relink it
  131. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  132. RECONFIG = config.status
  133. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
  134. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
  135. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  136. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  137.  
  138. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  139. cpu-i386.o:cpu-i386.c
  140.  
  141. saber:
  142.     #suppress 65 on bfd_map_over_sections 
  143.     #suppress 66 on bfd_map_over_sections 
  144.     #suppress 67 on bfd_map_over_sections 
  145.     #suppress 68 on bfd_map_over_sections 
  146.     #suppress 69 on bfd_map_over_sections 
  147.     #suppress 70 on bfd_map_over_sections 
  148.     #suppress 110 in bfd_map_over_sections 
  149.     #suppress 112 in bfd_map_over_sections 
  150.     #suppress 530 
  151.     #suppress 590 in swap_exec_header 
  152.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  153.     #suppress 590 in bfd_dont_truncate_arname
  154.     #suppress 590 on ignore 
  155.     #suppress 590 on abfd 
  156.     #setopt load_flags $(CFLAGS)
  157.     #load $(CFILES)
  158.  
  159.  
  160. #-----------------------------------------------------------------------------
  161. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  162. #
  163. # 'VERSION' file must be present and contain a string of the form "x.y"
  164. #-----------------------------------------------------------------------------
  165.  
  166. ver960.c: FORCE
  167.     rm -f ver960.c
  168.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  169.  
  170.  
  171. # This target should be invoked before building a new release.
  172. # 'VERSION' file must be present and contain a string of the form "x.y"
  173. #
  174. roll:
  175.     @V=`cat VERSION`        ; \
  176.     MAJ=`sed 's/\..*//' VERSION`    ; \
  177.     MIN=`sed 's/.*\.//' VERSION`    ; \
  178.     V=$$MAJ.`expr $$MIN + 1`    ; \
  179.     rm -f VERSION            ; \
  180.     echo $$V >VERSION        ; \
  181.     echo Version $$V
  182.  
  183. # Dummy target to force execution of dependent targets.
  184. #
  185. force:
  186.  
  187. install:
  188.     cp libbfd.a $(libdir)/libbfd.a.new
  189.     $(RANLIB) $(libdir)/libbfd.a.new
  190.     mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
  191.  
  192. # Target to uncomment host-specific lines in this makefile.  Such lines must
  193. # have the following string beginning in column 1: #__<hostname>__#
  194. # Original Makefile is backed up as 'Makefile.old'.
  195. #
  196. # Invoke with:  make make HOST=xxx
  197. #
  198. make:
  199.     -@if test $(HOST)x = x ; then \
  200.         echo 'Specify "make make HOST=???"'; \
  201.         exit 1; \
  202.     fi ; \
  203.     grep -s "^#The next line was generated by 'make make'" Makefile; \
  204.     if test $$? = 0 ; then    \
  205.         echo "Makefile has already been processed with 'make make'";\
  206.         exit 1; \
  207.     fi ; \
  208.     mv -f Makefile Makefile.old; \
  209.     echo "#The next line was generated by 'make make'"     >Makefile ; \
  210.     echo "HOST=$(HOST)"                    >>Makefile ; \
  211.     echo                            >>Makefile ; \
  212.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  213.  
  214. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  215.     $(SHELL) ./config.status
  216.  
  217. dep: $(CFILES)
  218.     mkdep $(CFLAGS) $?
  219.  
  220.  
  221.  
  222. headers:
  223.     cp $(srcdir)/bfd-in.h $(docdir)
  224.     cp $(srcdir)/libbfd-in.h $(docdir)
  225.     cp $(srcdir)/libcoff-in.h $(docdir)
  226.     (cd $(docdir); $(MAKE) protos)
  227.     # Rebuild prototypes in bfd.h
  228.     cp $(docdir)/bfd.h $(BFD_H)
  229.     cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
  230.     cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
  231.     rm -f $(docdir)/bfd-in.h 
  232.     rm -f $(docdir)/libbfd-in.h 
  233.     rm -f $(docdir)/libcoff-in.h 
  234.  
  235. bfd.info:
  236.     ( cd $(docdir); $(MAKE) bfd.info)
  237.  
  238. bfd.dvi:
  239.     (cd $(docdir); $(MAKE) bfd.dvi)
  240.  
  241. bfd.ps: 
  242.     (cd $(docdir); $(MAKE) bfd.ps)
  243.  
  244. # What appears below is generated by a hacked mkdep using gcc -MM.
  245.  
  246. # DO NOT DELETE THIS LINE -- mkdep uses it.
  247. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  248.  
  249. libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  250. opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  251. bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  252. archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  253.   $(INCDIR)/ar.h $(INCDIR)/ranlib.h 
  254. targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  255. cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  256. archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
  257. i386coff.o : i386coff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  258.   $(INCDIR)/i386coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  259. aout64.o : aout64.c 
  260. aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
  261.   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
  262.   $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h 
  263. sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  264.   libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
  265.   $(INCDIR)/stab.def $(INCDIR)/ar.h 
  266. demo64.o : demo64.c 
  267. icoff.o : icoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  268.   $(INCDIR)/intel-coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  269. srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  270. oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  271.   $(INCDIR)/oasys.h liboasys.h 
  272. ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  273.   $(INCDIR)/ieee.h libieee.h 
  274. m68kcoff.o : m68kcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  275.   $(INCDIR)/m68kcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  276. amdcoff.o : amdcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  277.   $(INCDIR)/amdcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  278. format.o : format.c $(INCDIR)/bfd.h \
  279.   $(INCDIR)/obstack.h libbfd.h 
  280. section.o : section.c $(INCDIR)/bfd.h \
  281.   $(INCDIR)/obstack.h libbfd.h 
  282. core.o : core.c $(INCDIR)/bfd.h \
  283.   $(INCDIR)/obstack.h libbfd.h 
  284. syms.o : syms.c $(INCDIR)/bfd.h \
  285.   $(INCDIR)/obstack.h libbfd.h 
  286. reloc.o : reloc.c $(INCDIR)/bfd.h \
  287.   $(INCDIR)/obstack.h libbfd.h 
  288. m88k-bcs.o : m88k-bcs.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  289.   $(INCDIR)/m88k-bcs.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  290. ecoff.o : ecoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  291.   $(INCDIR)/ecoff.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \
  292.   coffcode.h 
  293. trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  294.   libbfd.h libaout.h 
  295. newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  296.   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
  297.   $(INCDIR)/ar.h libaout.h 
  298. i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  299.   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
  300.   $(INCDIR)/ar.h libaout.h 
  301. bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  302.   $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h 
  303.  
  304. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  305.  
  306.